/******************************************************************************* * Copyright (c) 2012, Project: FP7-ICT-257930 Aniketos * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * - Neither the name of institution nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ******************************************************************************/ /** */ package eu.aniketos.mtm.model.mtm_bpmndi.impl; import eu.aniketos.mtm.model.mtm_aniketos.AniketosPackage; import eu.aniketos.mtm.model.mtm_aniketos.impl.AniketosPackageImpl; import eu.aniketos.mtm.model.mtm_bpmn2.Bpmn2Package; import eu.aniketos.mtm.model.mtm_bpmn2.impl.Bpmn2PackageImpl; import eu.aniketos.mtm.model.mtm_bpmndi.BPMNDiagram; import eu.aniketos.mtm.model.mtm_bpmndi.BPMNEdge; import eu.aniketos.mtm.model.mtm_bpmndi.BPMNLabel; import eu.aniketos.mtm.model.mtm_bpmndi.BPMNLabelStyle; import eu.aniketos.mtm.model.mtm_bpmndi.BPMNPlane; import eu.aniketos.mtm.model.mtm_bpmndi.BPMNShape; import eu.aniketos.mtm.model.mtm_bpmndi.BpmnDiFactory; import eu.aniketos.mtm.model.mtm_bpmndi.BpmnDiPackage; import eu.aniketos.mtm.model.mtm_bpmndi.DocumentRoot; import eu.aniketos.mtm.model.mtm_bpmndi.MessageVisibleKind; import eu.aniketos.mtm.model.mtm_bpmndi.ParticipantBandKind; import eu.aniketos.mtm.model.mtm_dc.DcPackage; import eu.aniketos.mtm.model.mtm_dc.impl.DcPackageImpl; import eu.aniketos.mtm.model.mtm_di.DiPackage; import eu.aniketos.mtm.model.mtm_di.impl.DiPackageImpl; import eu.aniketos.mtm.model.mtm_securebpmn2.Securebpmn2Package; import eu.aniketos.mtm.model.mtm_securebpmn2.impl.Securebpmn2PackageImpl; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; import org.eclipse.emf.ecore.xml.type.XMLTypePackage; /** * <!-- begin-user-doc --> * An implementation of the model <b>Package</b>. * <!-- end-user-doc --> * @generated */ public class BpmnDiPackageImpl extends EPackageImpl implements BpmnDiPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bpmnDiagramEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bpmnEdgeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bpmnLabelEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bpmnLabelStyleEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bpmnPlaneEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass bpmnShapeEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EClass documentRootEClass = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum messageVisibleKindEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EEnum participantBandKindEEnum = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType messageVisibleKindObjectEDataType = null; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private EDataType participantBandKindObjectEDataType = null; /** * Creates an instance of the model <b>Package</b>, registered with * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package * package URI value. * <p>Note: the correct way to create the package is via the static * factory method {@link #init init()}, which also performs * initialization of the package, or returns the registered package, * if one already exists. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see org.eclipse.emf.ecore.EPackage.Registry * @see eu.aniketos.mtm.model.mtm_bpmndi.BpmnDiPackage#eNS_URI * @see #init() * @generated */ private BpmnDiPackageImpl() { super(eNS_URI, BpmnDiFactory.eINSTANCE); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private static boolean isInited = false; /** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. * * <p>This method is used to initialize {@link BpmnDiPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static BpmnDiPackage init() { if (isInited) return (BpmnDiPackage)EPackage.Registry.INSTANCE.getEPackage(BpmnDiPackage.eNS_URI); // Obtain or create and register package BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new BpmnDiPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackage.eINSTANCE.eClass(); // Obtain or create and register interdependencies Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE); Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Securebpmn2Package.eNS_URI) : Securebpmn2Package.eINSTANCE); AniketosPackageImpl theAniketosPackage = (AniketosPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AniketosPackage.eNS_URI) instanceof AniketosPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AniketosPackage.eNS_URI) : AniketosPackage.eINSTANCE); DiPackageImpl theDiPackage = (DiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE); DcPackageImpl theDcPackage = (DcPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE); // Create package meta-data objects theBpmnDiPackage.createPackageContents(); theBpmn2Package.createPackageContents(); theSecurebpmn2Package.createPackageContents(); theAniketosPackage.createPackageContents(); theDiPackage.createPackageContents(); theDcPackage.createPackageContents(); // Initialize created meta-data theBpmnDiPackage.initializePackageContents(); theBpmn2Package.initializePackageContents(); theSecurebpmn2Package.initializePackageContents(); theAniketosPackage.initializePackageContents(); theDiPackage.initializePackageContents(); theDcPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theBpmnDiPackage.freeze(); // Update the registry and return the package EPackage.Registry.INSTANCE.put(BpmnDiPackage.eNS_URI, theBpmnDiPackage); return theBpmnDiPackage; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBPMNDiagram() { return bpmnDiagramEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getBPMNDiagram_BPMNPlane() { return (EReference)bpmnDiagramEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getBPMNDiagram_BPMNLabelStyle() { return (EReference)bpmnDiagramEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBPMNEdge() { return bpmnEdgeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getBPMNEdge_BPMNLabel() { return (EReference)bpmnEdgeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNEdge_BpmnElement() { return (EAttribute)bpmnEdgeEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNEdge_MessageVisibleKind() { return (EAttribute)bpmnEdgeEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNEdge_SourceElement() { return (EAttribute)bpmnEdgeEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNEdge_TargetElement() { return (EAttribute)bpmnEdgeEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBPMNLabel() { return bpmnLabelEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNLabel_LabelStyle() { return (EAttribute)bpmnLabelEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBPMNLabelStyle() { return bpmnLabelStyleEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getBPMNLabelStyle_Font() { return (EReference)bpmnLabelStyleEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBPMNPlane() { return bpmnPlaneEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNPlane_BpmnElement() { return (EAttribute)bpmnPlaneEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getBPMNShape() { return bpmnShapeEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getBPMNShape_BPMNLabel() { return (EReference)bpmnShapeEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_BpmnElement() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_ChoreographyActivityShape() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_IsExpanded() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_IsHorizontal() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_IsMarkerVisible() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_IsMessageVisible() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getBPMNShape_ParticipantBandKind() { return (EAttribute)bpmnShapeEClass.getEStructuralFeatures().get(7); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EClass getDocumentRoot() { return documentRootEClass; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EAttribute getDocumentRoot_Mixed() { return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_XMLNSPrefixMap() { return (EReference)documentRootEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_XSISchemaLocation() { return (EReference)documentRootEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_BPMNDiagram() { return (EReference)documentRootEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_BPMNEdge() { return (EReference)documentRootEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_BPMNLabel() { return (EReference)documentRootEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_BPMNLabelStyle() { return (EReference)documentRootEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_BPMNPlane() { return (EReference)documentRootEClass.getEStructuralFeatures().get(7); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EReference getDocumentRoot_BPMNShape() { return (EReference)documentRootEClass.getEStructuralFeatures().get(8); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getMessageVisibleKind() { return messageVisibleKindEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EEnum getParticipantBandKind() { return participantBandKindEEnum; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getMessageVisibleKindObject() { return messageVisibleKindObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EDataType getParticipantBandKindObject() { return participantBandKindObjectEDataType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BpmnDiFactory getBpmnDiFactory() { return (BpmnDiFactory)getEFactoryInstance(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private boolean isCreated = false; /** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; // Create classes and their features bpmnDiagramEClass = createEClass(BPMN_DIAGRAM); createEReference(bpmnDiagramEClass, BPMN_DIAGRAM__BPMN_PLANE); createEReference(bpmnDiagramEClass, BPMN_DIAGRAM__BPMN_LABEL_STYLE); bpmnEdgeEClass = createEClass(BPMN_EDGE); createEReference(bpmnEdgeEClass, BPMN_EDGE__BPMN_LABEL); createEAttribute(bpmnEdgeEClass, BPMN_EDGE__BPMN_ELEMENT); createEAttribute(bpmnEdgeEClass, BPMN_EDGE__MESSAGE_VISIBLE_KIND); createEAttribute(bpmnEdgeEClass, BPMN_EDGE__SOURCE_ELEMENT); createEAttribute(bpmnEdgeEClass, BPMN_EDGE__TARGET_ELEMENT); bpmnLabelEClass = createEClass(BPMN_LABEL); createEAttribute(bpmnLabelEClass, BPMN_LABEL__LABEL_STYLE); bpmnLabelStyleEClass = createEClass(BPMN_LABEL_STYLE); createEReference(bpmnLabelStyleEClass, BPMN_LABEL_STYLE__FONT); bpmnPlaneEClass = createEClass(BPMN_PLANE); createEAttribute(bpmnPlaneEClass, BPMN_PLANE__BPMN_ELEMENT); bpmnShapeEClass = createEClass(BPMN_SHAPE); createEReference(bpmnShapeEClass, BPMN_SHAPE__BPMN_LABEL); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__BPMN_ELEMENT); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__CHOREOGRAPHY_ACTIVITY_SHAPE); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_EXPANDED); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_HORIZONTAL); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_MARKER_VISIBLE); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__IS_MESSAGE_VISIBLE); createEAttribute(bpmnShapeEClass, BPMN_SHAPE__PARTICIPANT_BAND_KIND); documentRootEClass = createEClass(DOCUMENT_ROOT); createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_DIAGRAM); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_EDGE); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_LABEL); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_LABEL_STYLE); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_PLANE); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_SHAPE); // Create enums messageVisibleKindEEnum = createEEnum(MESSAGE_VISIBLE_KIND); participantBandKindEEnum = createEEnum(PARTICIPANT_BAND_KIND); // Create data types messageVisibleKindObjectEDataType = createEDataType(MESSAGE_VISIBLE_KIND_OBJECT); participantBandKindObjectEDataType = createEDataType(PARTICIPANT_BAND_KIND_OBJECT); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ private boolean isInitialized = false; /** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages DiPackage theDiPackage = (DiPackage)EPackage.Registry.INSTANCE.getEPackage(DiPackage.eNS_URI); XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); DcPackage theDcPackage = (DcPackage)EPackage.Registry.INSTANCE.getEPackage(DcPackage.eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes bpmnDiagramEClass.getESuperTypes().add(theDiPackage.getDiagram()); bpmnEdgeEClass.getESuperTypes().add(theDiPackage.getLabeledEdge()); bpmnLabelEClass.getESuperTypes().add(theDiPackage.getLabel()); bpmnLabelStyleEClass.getESuperTypes().add(theDiPackage.getStyle()); bpmnPlaneEClass.getESuperTypes().add(theDiPackage.getPlane()); bpmnShapeEClass.getESuperTypes().add(theDiPackage.getLabeledShape()); // Initialize classes and features; add operations and parameters initEClass(bpmnDiagramEClass, BPMNDiagram.class, "BPMNDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNDiagram_BPMNPlane(), this.getBPMNPlane(), null, "bPMNPlane", null, 1, 1, BPMNDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getBPMNDiagram_BPMNLabelStyle(), this.getBPMNLabelStyle(), null, "bPMNLabelStyle", null, 0, -1, BPMNDiagram.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(bpmnEdgeEClass, BPMNEdge.class, "BPMNEdge", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNEdge_BPMNLabel(), this.getBPMNLabel(), null, "bPMNLabel", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNEdge_BpmnElement(), theXMLTypePackage.getQName(), "bpmnElement", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNEdge_MessageVisibleKind(), this.getMessageVisibleKind(), "messageVisibleKind", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNEdge_SourceElement(), theXMLTypePackage.getQName(), "sourceElement", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNEdge_TargetElement(), theXMLTypePackage.getQName(), "targetElement", null, 0, 1, BPMNEdge.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(bpmnLabelEClass, BPMNLabel.class, "BPMNLabel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBPMNLabel_LabelStyle(), theXMLTypePackage.getQName(), "labelStyle", null, 0, 1, BPMNLabel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(bpmnLabelStyleEClass, BPMNLabelStyle.class, "BPMNLabelStyle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNLabelStyle_Font(), theDcPackage.getFont(), null, "font", null, 1, 1, BPMNLabelStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(bpmnPlaneEClass, BPMNPlane.class, "BPMNPlane", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBPMNPlane_BpmnElement(), theXMLTypePackage.getQName(), "bpmnElement", null, 0, 1, BPMNPlane.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(bpmnShapeEClass, BPMNShape.class, "BPMNShape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getBPMNShape_BPMNLabel(), this.getBPMNLabel(), null, "bPMNLabel", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_BpmnElement(), theXMLTypePackage.getQName(), "bpmnElement", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_ChoreographyActivityShape(), theXMLTypePackage.getQName(), "choreographyActivityShape", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_IsExpanded(), theXMLTypePackage.getBoolean(), "isExpanded", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_IsHorizontal(), theXMLTypePackage.getBoolean(), "isHorizontal", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_IsMarkerVisible(), theXMLTypePackage.getBoolean(), "isMarkerVisible", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_IsMessageVisible(), theXMLTypePackage.getBoolean(), "isMessageVisible", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBPMNShape_ParticipantBandKind(), this.getParticipantBandKind(), "participantBandKind", null, 0, 1, BPMNShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_BPMNDiagram(), this.getBPMNDiagram(), null, "bPMNDiagram", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_BPMNEdge(), this.getBPMNEdge(), null, "bPMNEdge", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_BPMNLabel(), this.getBPMNLabel(), null, "bPMNLabel", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_BPMNLabelStyle(), this.getBPMNLabelStyle(), null, "bPMNLabelStyle", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_BPMNPlane(), this.getBPMNPlane(), null, "bPMNPlane", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); initEReference(getDocumentRoot_BPMNShape(), this.getBPMNShape(), null, "bPMNShape", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(messageVisibleKindEEnum, MessageVisibleKind.class, "MessageVisibleKind"); addEEnumLiteral(messageVisibleKindEEnum, MessageVisibleKind.INITIATING); addEEnumLiteral(messageVisibleKindEEnum, MessageVisibleKind.NON_INITIATING); initEEnum(participantBandKindEEnum, ParticipantBandKind.class, "ParticipantBandKind"); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.TOP_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.MIDDLE_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.BOTTOM_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.TOP_NON_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.MIDDLE_NON_INITIATING); addEEnumLiteral(participantBandKindEEnum, ParticipantBandKind.BOTTOM_NON_INITIATING); // Initialize data types initEDataType(messageVisibleKindObjectEDataType, MessageVisibleKind.class, "MessageVisibleKindObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(participantBandKindObjectEDataType, ParticipantBandKind.class, "ParticipantBandKindObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); // Create resource createResource(eNS_URI); // Create annotations // emf.gen createEmfAnnotations(); // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); } /** * Initializes the annotations for <b>emf.gen</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void createEmfAnnotations() { String source = "emf.gen"; addAnnotation (this, source, new String[] { "basePackage", "eu.aniketos.wp5.mtm" }); } /** * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected void createExtendedMetaDataAnnotations() { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; addAnnotation (bpmnDiagramEClass, source, new String[] { "name", "BPMNDiagram", "kind", "elementOnly" }); addAnnotation (getBPMNDiagram_BPMNPlane(), source, new String[] { "kind", "element", "name", "BPMNPlane", "namespace", "##targetNamespace" }); addAnnotation (getBPMNDiagram_BPMNLabelStyle(), source, new String[] { "kind", "element", "name", "BPMNLabelStyle", "namespace", "##targetNamespace" }); addAnnotation (bpmnEdgeEClass, source, new String[] { "name", "BPMNEdge", "kind", "elementOnly" }); addAnnotation (getBPMNEdge_BPMNLabel(), source, new String[] { "kind", "element", "name", "BPMNLabel", "namespace", "##targetNamespace" }); addAnnotation (getBPMNEdge_BpmnElement(), source, new String[] { "kind", "attribute", "name", "bpmnElement" }); addAnnotation (getBPMNEdge_MessageVisibleKind(), source, new String[] { "kind", "attribute", "name", "messageVisibleKind" }); addAnnotation (getBPMNEdge_SourceElement(), source, new String[] { "kind", "attribute", "name", "sourceElement" }); addAnnotation (getBPMNEdge_TargetElement(), source, new String[] { "kind", "attribute", "name", "targetElement" }); addAnnotation (bpmnLabelEClass, source, new String[] { "name", "BPMNLabel", "kind", "elementOnly" }); addAnnotation (getBPMNLabel_LabelStyle(), source, new String[] { "kind", "attribute", "name", "labelStyle" }); addAnnotation (bpmnLabelStyleEClass, source, new String[] { "name", "BPMNLabelStyle", "kind", "elementOnly" }); addAnnotation (getBPMNLabelStyle_Font(), source, new String[] { "kind", "element", "name", "Font", "namespace", "http://www.omg.org/spec/DD/20100524/DC" }); addAnnotation (bpmnPlaneEClass, source, new String[] { "name", "BPMNPlane", "kind", "elementOnly" }); addAnnotation (getBPMNPlane_BpmnElement(), source, new String[] { "kind", "attribute", "name", "bpmnElement" }); addAnnotation (bpmnShapeEClass, source, new String[] { "name", "BPMNShape", "kind", "elementOnly" }); addAnnotation (getBPMNShape_BPMNLabel(), source, new String[] { "kind", "element", "name", "BPMNLabel", "namespace", "##targetNamespace" }); addAnnotation (getBPMNShape_BpmnElement(), source, new String[] { "kind", "attribute", "name", "bpmnElement" }); addAnnotation (getBPMNShape_ChoreographyActivityShape(), source, new String[] { "kind", "attribute", "name", "choreographyActivityShape" }); addAnnotation (getBPMNShape_IsExpanded(), source, new String[] { "kind", "attribute", "name", "isExpanded" }); addAnnotation (getBPMNShape_IsHorizontal(), source, new String[] { "kind", "attribute", "name", "isHorizontal" }); addAnnotation (getBPMNShape_IsMarkerVisible(), source, new String[] { "kind", "attribute", "name", "isMarkerVisible" }); addAnnotation (getBPMNShape_IsMessageVisible(), source, new String[] { "kind", "attribute", "name", "isMessageVisible" }); addAnnotation (getBPMNShape_ParticipantBandKind(), source, new String[] { "kind", "attribute", "name", "participantBandKind" }); addAnnotation (documentRootEClass, source, new String[] { "name", "", "kind", "mixed" }); addAnnotation (getDocumentRoot_Mixed(), source, new String[] { "kind", "elementWildcard", "name", ":mixed" }); addAnnotation (getDocumentRoot_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", "name", "xmlns:prefix" }); addAnnotation (getDocumentRoot_XSISchemaLocation(), source, new String[] { "kind", "attribute", "name", "xsi:schemaLocation" }); addAnnotation (getDocumentRoot_BPMNDiagram(), source, new String[] { "kind", "element", "name", "BPMNDiagram", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_BPMNEdge(), source, new String[] { "kind", "element", "name", "BPMNEdge", "namespace", "##targetNamespace", "affiliation", "http://www.omg.org/spec/DD/20100524/DI#DiagramElement" }); addAnnotation (getDocumentRoot_BPMNLabel(), source, new String[] { "kind", "element", "name", "BPMNLabel", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_BPMNLabelStyle(), source, new String[] { "kind", "element", "name", "BPMNLabelStyle", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_BPMNPlane(), source, new String[] { "kind", "element", "name", "BPMNPlane", "namespace", "##targetNamespace" }); addAnnotation (getDocumentRoot_BPMNShape(), source, new String[] { "kind", "element", "name", "BPMNShape", "namespace", "##targetNamespace", "affiliation", "http://www.omg.org/spec/DD/20100524/DI#DiagramElement" }); addAnnotation (messageVisibleKindEEnum, source, new String[] { "name", "MessageVisibleKind" }); addAnnotation (messageVisibleKindObjectEDataType, source, new String[] { "name", "MessageVisibleKind:Object", "baseType", "MessageVisibleKind" }); addAnnotation (participantBandKindEEnum, source, new String[] { "name", "ParticipantBandKind" }); addAnnotation (participantBandKindObjectEDataType, source, new String[] { "name", "ParticipantBandKind:Object", "baseType", "ParticipantBandKind" }); } } //BpmnDiPackageImpl